<script type="text/javascript">
    $(function(){
        trbgmoves('#d3dff2');
    })
    function tijiao(){
        var fileField=$('#fileField').val();
        var filename=$('#filesname').val();
        var button=$('#button').val();
        var hang=$('#smtlisttr').find('td').length;
        var yc666=$('#yc666').val();
        if(fileField=='' && filename=='/'){
            alert("<?=lang('smtqxzwj')?>！！！");
            return false;
        }
        if(button=="<?=lang('smtqrwwcrsjk')?>") {
            if (hang != 21) {
                alert("excel<?=lang('smtsjgscw')?>！");
                return false;
            }
            if(yc666==1){
                alert("<?=lang('smtczdlcfsj')?>！！！");
                return false;
            }
        }
    }
</script>
<!--top结束-->
<div class="mian">
    <div class="mian1">
        <div class="mian2">
            <!--left start-->
            <?php $this->load->view('defaults/common/left');?>
            <!--left end-->

            <!--right start-->
            <div class="right" >
                <!--breadcrumb start-->
                <div class="righta"><?=$this->breadcrumb->generateHTML();?> </div>
                <!--breadcrumb end-->

                <!-- contents start -->
                <div id="contents">
                    <div id="ct_search" >
                        <form action="<?=blang_url('orders/Smtexcel/'.$fct.'/list')?>" method="post" enctype="multipart/form-data" name="excelform" >
                            <table id="search_tb" style="width: 1200px">
                                <tr>
                                    <td>
                                        <input name="action" type="hidden" value="submit" />
                                        <input name="filesname" id="filesname" type="hidden" value=<?=$filesname?> />
                                        <font color="red"><?=$jilumeiyou[0]?><?=lang('smthsztddh')?></font><?=lang('smtbsddyjcz')?>！！！
                                        <input type="submit" name="button" id="button" onclick="return tijiao()" value="<?=$numto==0?lang('smtscwjscyl'):lang('smtqrwwcrsjk')?>" />
                                        <p>
                                            <?=$tishi?>
                                        </p>
                                    </td>
                                </tr>
                            </table>
                        </form>

                    </div>
                    <div>

                    </div>
                    <div class="ct_content" style="height:1000px;overflow:auto" >
                        <from >
                        <table id="smtlist">
                            <tr id="smtlisttr">
                                <?php for($i=0;$i<=count($smtarray);$i++ ) :?>
                                <td><?=$smtarray[$i]?></td>
                                <?php endfor ?>
                            </tr>
                            <?php for($j=1;$j<=count($count);$j++):?>
                                <tr>
                                <?php for($f=0;$f<count($count[$j]);$f++):?>
                                    <td><?php
                                            switch($f){
                                                case 0:
                                                    if(in_array($count[$j][$f],$oerderidlist)){
                                                        echo "<font color='red'><input type='hidden' id='yc666' value='1'>".$count[$j][$f]."</font>";
                                                    }else {
                                                        echo $count[$j][$f];
                                                    }
                                                    break;
                                                default:
                                                   echo  $count[$j][$f];
                                            }
                                        ?></td>
                                <?php endfor ?>
                                </tr>
                            <?php endfor ?>
                        </table>
                        </from>
                    </div>
                </div>
                <!-- contents end -->
            </div>
            <!--right end-->
        </div>
    </div>
</div>

